//Created by daminghu-cli yasenagat# on 2020-05-08 16:28:01
import Vue from 'vue'
import Router from 'vue-router'
import login from '@/pages/login.vue'
import main from '@/pages/main.vue'
import home from '@/pages/home.vue'




		    
import tb_agent from '@/pages/tb_agent.vue'
        	
import tb_agent_task from '@/pages/tb_agent_task.vue'
        	
import tb_svr from '@/pages/tb_svr.vue'
        	
import tb_svr_task from '@/pages/tb_svr_task.vue'
        	
        

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'login',
            component: login
        },
        {
            path: '/main',
            name: 'main',
            component: main,
            children: [
            {
                    path: '/home',
                    name: 'home',
                    component: home,
                    meta: {
                        requiresAuth: true,
                        navpath: ['首页']
                    }
                },
            

            		    
             {
                            path: '/tb_agent',
                            component: tb_agent,
                            meta: {
                                requiresAuth: true,
                                navpath: ['数据管理', 'tb_agent']
                            }
                        },
                    	
             {
                            path: '/tb_agent_task',
                            component: tb_agent_task,
                            meta: {
                                requiresAuth: true,
                                navpath: ['数据管理', 'tb_agent_task']
                            }
                        },
                    	
             {
                            path: '/tb_svr',
                            component: tb_svr,
                            meta: {
                                requiresAuth: true,
                                navpath: ['数据管理', 'tb_svr']
                            }
                        },
                    	
             {
                            path: '/tb_svr_task',
                            component: tb_svr_task,
                            meta: {
                                requiresAuth: true,
                                navpath: ['数据管理', 'tb_svr_task']
                            }
                        }
                    	
                    

            ]
        }
    ]
})
